package com.firmboy.pattern.adapter;

/**
 * @author firmboy
 * @create 2018-06-19 下午3:47
 **/
public class SimpleHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return  (handler instanceof SimpleController);
    }

    @Override
    public void handle(Object handler) {
        ((SimpleController)handler).doSimpleHandler();
    }
}
